package com.app.mapper;

import com.app.model.UserModel;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Component;

import java.util.List;

@Mapper
@Component
public interface UserMapper extends BaseMapper<UserModel> {
    @Select("select * from lm_user where openid = #{openid}")
    UserModel getByOpenid(String openid);

    String getFaceUrl(int userId);

    UserModel selectUser(Integer userId,String keyword);
    UserModel selectUserInFo(Integer userId);

    int getCount();

    List<UserModel> whiteList();
}
